package com.white.commonlib.adapter.recycle;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import butterknife.ButterKnife;

/**
 * Created by ytf on 2017/3/31 031.
 * Description: 加载更多的默认ViewHolder
 */

public abstract class BaseLoadMoreViewHolder extends RecyclerView.ViewHolder
{
    View v;

    public BaseLoadMoreViewHolder(View itemView)
    {
        super(itemView);
        ButterKnife.bind(this, itemView);
        v = itemView;
    }

    public View getItemView()
    {
        return v;
    }

    /***
     * 开始加载
     */
    public void onStartLoaddingMore(){}

    /***
     * 正在加载更多
     */
    public void onLoadingMore(){}

    /***
     * 加载成功
     */
    public void onLoadSuccess(){}

    /***
     * 没有更多数据
     */
    public void onDataDrain(){}

    /***
     * 加载失败
     */
    public void onLoadFailed(){}
}
